package com.cskaoyan.bean.data;

import com.cskaoyan.model.MarketOrderGoods;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@NoArgsConstructor
@Data
public class OrderDetailData {
    private List<?> expressInfo = new ArrayList<>();
    private OrderInfo orderInfo;
    private List<MarketOrderGoods> orderGoods;

    @NoArgsConstructor
    @Data
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class OrderInfo {
        private String expName;
        private String consignee;
        private String address;
        private Date addTime;
        private String orderSn;
        private BigDecimal actualPrice;
        private String mobile;
        private String message;
        private String expCode;
        private String orderStatusText;
        private Short aftersaleStatus;
        private BigDecimal goodsPrice;
        private String expNo;
        private BigDecimal couponPrice;
        private Integer id;
        private BigDecimal freightPrice;
        private HandleOption handleOption;

        @NoArgsConstructor
        @Data
        public static class HandleOption {
            private Boolean cancel = false;
            private Boolean delete = false;
            private Boolean pay = false;
            private Boolean comment = false;
            private Boolean confirm = false;
            private Boolean refund = false;
            private Boolean rebuy = false;
            private Boolean aftersale = false;
        }
    }
}
